import request from '@/utils/request'

// 查询题型管理列表
export function questionlist(query) {
    return request({
        url: '/basic/question/list',
        method: 'get',
        params: query
    })
}

// 新增题型管理
export function questionAdd(query) {
    return request({
        url: '/basic/question',
        method: 'post',
        data: query
    })
}

// 修改题型管理
export function questionEdit(query) {
    return request({
        url: '/basic/question',
        method: 'put',
        data: query
    })
}

// 修改题型删除
export function questionDel(query) {
    return request({
        url: '/basic/question/' + query,
        method: 'delete',
    })
}